import request from "@/utils/request"
//部门列表
export function getSection(data){
    return request({
        url:'/system/dept/treeselect',
        method:'post',
        data,
    })
}
//新增部门
export function addSection(){
    return request({
        url:'/system/role/insert',
    })
}

//修改部门
export function emitSection(data){
    return request({
        url:'/system/role/insert',
        method:'put',
        data
    })
}
//删除部门
export function delSection(id){
    return request({
        url:`system/dept/delete/${id}`,
        method:'delete',
    })
}
